package com.balabala.gym_user.service.impl;

import com.balabala.gym_user.mapper.VenuesMapper;
import com.balabala.gym_user.pojo.dto.VenuesAppQueryDto;
import com.balabala.gym_user.pojo.dto.VenuesQueryDto;
import com.balabala.gym_user.pojo.entity.Venues;
import com.balabala.gym_user.pojo.vo.VenuesAllVo;
import com.balabala.gym_user.pojo.vo.VenuesDetailsVo;
import com.balabala.gym_user.pojo.vo.VenuesQueryVo;
import com.balabala.gym_user.service.VenuesService;
import com.baomidou.mybatisplus.extension.service.impl.ServiceImpl;
import lombok.extern.slf4j.Slf4j;
import org.springframework.stereotype.Service;

import java.util.List;

/**
 * @Author xh
 * @Date: 2023/05/01/ 16:49
 * @description 场馆实现类
 */
@Service
@Slf4j
public class VenuesServiceImpl extends ServiceImpl<VenuesMapper, Venues> implements VenuesService {


    @Override
    public List<VenuesQueryVo> findName(VenuesQueryDto venuesQueryDto) {

        return getBaseMapper().findName(venuesQueryDto);
    }

    @Override
    public List<VenuesAllVo> findAllByVenues() {
        return getBaseMapper().findAllByVenues();
    }

    @Override
    public List<VenuesAllVo> findByName(VenuesAppQueryDto venuesAppQueryDto) {
        return getBaseMapper().findByName(venuesAppQueryDto);
    }

    @Override
    public List<VenuesDetailsVo> findDetails() {
        return getBaseMapper().findDetails();
    }


}
